@echo off
set Path=%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem
setlocal enabledelayedexpansion


set p="%1"


for /r "%p%" %%a in (*) do (
  set /a num+=1
  set /a filesize=!filesize!+%%~za
)
echo !filesize!
exit

pause
